package com.yao.config;

import com.yao.pojo.Dept;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * Copyright (C), 2022-2023, 姚兵
 * Author: 32210
 * Date: 2023/2/8 14:17
 * FileName: AppConfig
 * Description:
 */

@Configuration
@ComponentScan("com.yao")
public class AppConfig {

    @Bean
    Dept dept(){
        Dept dept = new Dept();
        dept.setId(1001);
        dept.setDesc("abc");
        dept.setName("hahah");
        return dept;
    }
}
